/**
 * 
 */
package ru.olympus.antonyhands.ao.server.item.util;

import ru.olympus.antonyhands.ao.server.item.ItemBase;
import ru.olympus.antonyhands.ao.shared.util.StringPair;

import com.google.common.base.Function;

/**
 * @author AntonyHands
 * @since 15.02.2012
 */
public class ItemBaseToStringPairTransformer implements Function<ItemBase, StringPair>
{
    @Override
    public StringPair apply(ItemBase arg0)
    {
        return new StringPair(arg0.getCode(), arg0.getTitle());
    }
}
